/*
 * @Description: 
 * @Author: Zhang Zhangda
 * @Date: 2021-03-05 10:06:37
 * @LastEditTime: 2021-03-09 16:18:36
 * @LastEditors: Please set LastEditors
 */
import {request} from "umi";
//引入类型
import {Login} from "@/interface/login.user";
//登录
export const toLogin=(data:Login)=>{
  return request('/user/login',{method:'post',data})
}

//获取用户信息
export const getuserinfo=()=>{
  return request('/user/userInfo',{method:'get'})
}

//获取用户视图权限
export const getUserViewPrivilege=()=>{
  return request("/user/view_authority",{method:'get'})
}